<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "huoke".
 *
 * @property integer $id
 * @property integer $status
 * @property string $pageType
 * @property string $isDirectFrom
 * @property string $custSrc
 * @property string $city
 * @property string $name
 * @property string $sex
 * @property string $teleNum
 * @property string $income
 * @property string $email
 * @property string $mediaSourceId
 * @property string $applyData
 * @property string $capaignCode
 * @property string $capaignName
 * @property string $creditYears
 * @property string $credit
 * @property string $hasCreditCard
 * @property string $loanExperience
 * @property string $mortgage
 * @property string $hasCarLoan
 * @property string $smsAccept
 * @property string $recommenderAccount
 * @property string $recommenderName
 * @property string $recommenderMobile
 * @property string $education
 * @property string $birthDate
 * @property string $createSrc
 * @property string $profession
 * @property string $payoffType
 */
class HuokeTable extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'huoke';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['status'], 'integer'],
            [['pageType', 'isDirectFrom', 'custSrc', 'city', 'name', 'sex', 'teleNum', 'income', 'email', 'mediaSourceId', 'applyData', 'capaignCode', 'capaignName', 'creditYears', 'credit', 'hasCreditCard', 'loanExperience', 'mortgage', 'hasCarLoan', 'smsAccept', 'recommenderAccount', 'recommenderName', 'recommenderMobile', 'education', 'birthDate', 'createSrc', 'profession', 'payoffType'], 'string'],
            [['capaignCode'], 'required'],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'status' => 'Status',
            'pageType' => 'Page Type',
            'isDirectFrom' => 'Is Direct From',
            'custSrc' => 'Cust Src',
            'city' => 'City',
            'name' => 'Name',
            'sex' => 'Sex',
            'teleNum' => 'Tele Num',
            'income' => 'Income',
            'email' => 'Email',
            'mediaSourceId' => 'Media Source ID',
            'applyData' => 'Apply Data',
            'capaignCode' => 'Capaign Code',
            'capaignName' => 'Capaign Name',
            'creditYears' => 'Credit Years',
            'credit' => 'Credit',
            'hasCreditCard' => 'Has Credit Card',
            'loanExperience' => 'Loan Experience',
            'mortgage' => 'Mortgage',
            'hasCarLoan' => 'Has Car Loan',
            'smsAccept' => 'Sms Accept',
            'recommenderAccount' => 'Recommender Account',
            'recommenderName' => 'Recommender Name',
            'recommenderMobile' => 'Recommender Mobile',
            'education' => 'Education',
            'birthDate' => 'Birth Date',
            'createSrc' => 'Create Src',
            'profession' => 'Profession',
            'payoffType' => 'Payoff Type',
        ];
    }
}
